package org.raymond.iworks.admin.service;

import org.raymond.iworks.apis.vo.permission.PermissionNodeVO;
import org.raymond.iworks.repository.IService;
import org.raymond.iworks.repository.entity.TSysPermission;

import java.util.List;
import java.util.Set;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public interface ITSysPermissionService extends IService<TSysPermission> {

    /**
     * 根据角色Id查询关联的权限,权限的父子关系并不是包含关系,仅用于表示界面显示结构
     * @param roleIds
     * @return
     */
    List<TSysPermission> getsAssociatedPermissionByRoleIds(Set<Long> roleIds);

    PermissionNodeVO getTreeByRoleId(Long roleId);

    PermissionNodeVO tree();
}
